package com.isoft.hospital.controller;

import com.isoft.hospital.common.ResponseData;
import com.isoft.hospital.service.JiuzhenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class JiuzhenController {
    @Autowired
    private JiuzhenService service;
    @GetMapping("/selectAllJiuzhen")
    public ResponseData selectAll(){
        return service.selectAll();
    }

    @GetMapping("/queryBygid")
    public ResponseData queryByGid(int g_id){
        return service.queryByGid(g_id);
    }

}
